import Vue from 'vue'
import Router from 'vue-router'
import GoodsList from './../views/GoodsList'
import Test from './../views/Test'
// import Title from '@/views/Title'
// import Image from '@/views/Image'
// import Cart from '@/views/Cart'
import axios from 'axios'
// import './mock/mock.js'

Vue.prototype.$http=axios
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: GoodsList
    },
    {
      path:'/user',
      component:Test
    }
  ]
})

// export default new Router({
//   routes: [
//     {
//       path: '/goods',
//       name: 'GoodsList',
//       components: {
//         default:GoodsList,
//         title:Title,
//         img:Image
//       },
//     },
//     {
//       path:'/cart/:cartId',
//       name:'cart',
//       component: Cart
//     }
//   ]
// })
